package yth.api.train.model;

import java.util.Date;
 

import com.fasterxml.jackson.annotation.JsonProperty;

import yth.api.train.entity.TrainCustomer;

public class TrainCustomerModel {

	 private Integer id;

	    private String consignee;
	    
	    private String initials;

	    @JsonProperty("region_id")
	    private String regionid;

	    @JsonProperty("create_time")
	    private Date createtime;

	    @JsonProperty("update_time")
	    private Date updatetime;

	    public Integer getId() {
	        return id;
	    }

	    public void setId(Integer id) {
	        this.id = id;
	    }

	    public String getConsignee() {
	        return consignee;
	    }

	    public void setConsignee(String consignee) {
	        this.consignee = consignee == null ? null : consignee.trim();
	    }

	    public String getRegionid() {
	        return regionid;
	    }

	    public void setRegionid(String regionid) {
	        this.regionid = regionid == null ? null : regionid.trim();
	    }

	    public Date getCreatetime() {
	        return createtime;
	    }

	    public void setCreatetime(Date createtime) {
	        this.createtime = createtime;
	    }

	    public Date getUpdatetime() {
	        return updatetime;
	    }
	    
	    

	    public String getInitials() {
			return initials;
		}

		public void setInitials(String initials) {
			this.initials = initials;
		}

		public void setUpdatetime(Date updatetime) {
	        this.updatetime = updatetime;
	    }
	    
	    public static TrainCustomerModel copyFrom(TrainCustomer entity) {
	    	TrainCustomerModel model=new TrainCustomerModel();
	    	model.setId(entity.getId());
	    	model.setConsignee(entity.getConsignee());
	    	model.setCreatetime(entity.getCreatetime());
	    	model.setUpdatetime(entity.getUpdatetime());
	    	model.setRegionid(entity.getRegionid());
	    	model.setInitials(entity.getInitials());
	    	return model;
	    }
	    
}
